﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {

            //九九乘法表
            for (int a = 1; a < 10; a++)
            {
                for (int b = 1; b <= a; b++)
                {
                    Console.Write("{0}*{1}={2}\t", a, b, a * b);
                }
                Console.WriteLine();
            }

            //菱形
            for (int i = 1; i <= 7; i++)
            {
                for (int j = 1; j <= 7 - i; j++)
                {
                    Console.Write(" ");
                }
                for (int k = 1; k <= 2 * i - 1; k++)
                {
                    Console.Write("*");
                }
                Console.WriteLine();
            }
            for (int i = 6; i >= 1; i--)
            {
                for (int j = 1; j <= 7 - i; j++)
                {
                    Console.Write(" ");
                }
                for (int k = 1; k <= 2 * i - 1; k++)
                {
                    Console.Write("*");
                }
                Console.WriteLine();
            }
        }
    }
}
